@extends('Home.User.Common.layout')
@section('title')
    招聘渠道_渠道管理
@endsection
@section('content')
    <!--  content  -->
    <main class="common_content">
        <div class="container">
            <div class="ct_main">
                @include('Home.User.Channel.Common.channel_menu')
                <ul class="nav-items1 nav-items2 w999" id="tab-content2">
                    <!--招聘渠道-->
                    <li class="basic-sets active">
                        <form class="selector-head">
                            <h2 class="active lt">招聘渠道</h2>
                            <div class="rt">
                                <a href="javascript:;" class="add-new-btn add-client" onclick="open_button('{{route('add_recruit')}}','新增招聘渠道')" title="新增招聘渠道"><i class="icon icon-xinzen"></i></a>
                                <a href="javascript:location.replace(location.href);" class="refresh-btn" title="刷新"><i class="icon icon-shuaxin"></i></a>
                            </div>
                        </form>
                        <div class="layui-form basic-sets-ul">
                            <table class="layui-table">
                                <thead>
                                <tr>
                                    <th class="c-day">起始时间</th>
                                    <th class="c-name">招聘渠道名称</th>
                                    <th class="c-count">注册账户/密码</th>
                                    <th class="c-contact">渠道网址</th>
                                    <th class="c-corp">渠道覆盖区域</th>
                                    <th class="c-corp">渠道介绍</th>
                                    <th class="c-tac">跟进操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k => $v)
                                    <tr>
                                        <td data-label="创建时间">{{$v->created_at}}</td>
                                        <td data-label="招聘渠道名称">{{$v->chinese_name}}</td>
                                        <td data-label="注册账户/密码">登录账户：{{$v->create_username}}，登录密码：{{$v->create_user_password}}</td>
                                        <td data-label="渠道网址">{{$v->url}}</td>
                                        <td data-label="渠道覆盖区域">{{$v->area}}</td>
                                        <td data-label="渠道介绍">{{$v->brief}}</td>
                                        <td data-label="操作" class="tac layui-row layui-col-space10">
                                            <a href="javascript:;" class="edit-btn edit-client" onclick="open_button('{{route('edit_recruit',$v->id)}}','查看/编辑招聘渠道')" title="查看/编辑招聘渠道"><i class="layui-icon">&#xe642;</i></a>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </main>
@endsection
@section('footer')
    <script>
        /***  分页 JS  ***/
        Page({
            num: '{{$num}}',		//页码数
            startnum: '{{$page}}',				//指定页码
            elem:$('#page'),		//指定的元素
            callback:function(n){	//回调函数
                window.location.href = '{{route('recruit_list')}}?page='+n;
            }
        });
    </script>
@endsection